package cn.kgc.springmvc02.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: mosin
 * @version: v1.0  2022/12/13
 * /st/st1.do
 * springmvc对静态资源的处理
 * 1.改变url的匹配路径  将  / 改为 *.do
 * 2.静态资源映射  <mvc:resources mapping="/static/**" location="/static/"></mvc:resources>
 * 3.使用tomcat处理静态资源   <mvc:default-servlet-handler></mvc:default-servlet-handler>
 */
@Controller
@RequestMapping("st")
public class StaticResourceController {


    @RequestMapping("st1.do")
    public String method1(){
        //int a = 1/0;
        return "index";
    }


}
